#include <stdio.h>
#include<math.h>

int main()
{
    float x, f;
    int i;
    for (i = 0; i < 3; i++)
    {
        scanf_s("%f", &x);
        if (x < 0)
            f = fabs(x + 1);
        else if (x >= 0 && x <= 5)
            f = 2 * x + 1;
        else  f = sin(x) + 5;
        printf("x=%.2f,y=%.2f\n", x, f);
    }
    return 0;
}

